package com.foreknow.dao;

import java.sql.SQLException;
import java.util.List;

import org.apache.commons.dbutils.ResultSetHandler;

public interface IBaseDao<T> {
    public int delete(String sql, Object... params) throws SQLException;

    public int delete(String sql) throws SQLException;

    public int insert(String sql, Object[] params) throws SQLException;

    public List<T> queryByCondition(String sql) throws SQLException;

    public List<T> queryByCondition(String sql, Object... params) throws SQLException;

    public T queryOne(String sql, Object param) throws SQLException;

    public int update(String sql, Object... params) throws SQLException;

    public int update(String sql, Object param) throws SQLException;

    public ResultSetHandler<T> getResultSetHandler();
}
